<link href="css/header.css" rel="stylesheet" type="text/css" />


<?php if ($this->_var['isindex']): ?>
<script type="text/javascript">if (screen.width < 1280) {document.getElementsByTagName('body')[0].className = 's950';}</script>
<?php else: ?>
<script type="text/javascript">var _body=document.getElementsByTagName('body')[0];_body.className=_body.className+' s960';</script>
<?php endif; ?>

<script type="text/javascript">
var process_request = "<?php echo $this->_var['lang']['process_request']; ?>";
</script>

<div id="header" class="header">

	<div class="head-bar">

    	<div class="site-bar"> 
 <ul class="userinfos"> 
  <?php 
$k = array (
  'name' => 'member_info',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?>
 </ul> 
 <?php if ($this->_var['navigator_list']['top']): ?>
 <ul class="sitelinks"> 
 <?php $_from = $this->_var['navigator_list']['top']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'nav');$this->_foreach['nav_top_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nav_top_list']['total'] > 0):
    foreach ($_from AS $this->_var['nav']):
        $this->_foreach['nav_top_list']['iteration']++;
?>
  <li <?php if (! ($this->_foreach['nav_top_list']['iteration'] <= 1)): ?>class="bldr"<?php endif; ?>><a href="<?php echo $this->_var['nav']['url']; ?>" <?php if ($this->_var['nav']['opennew'] == 1): ?>target="_blank"<?php endif; ?>><?php echo $this->_var['nav']['name']; ?></a></li> 
 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 </ul> 
 <?php endif; ?>
</div></div>

<div class="head-main">

    	<div class="head-logo"> 
 <a href="index.php" class="logo-site">也买酒</a> 
</div><div class="head-search">
   <script type="text/javascript">
    
    <!--
    function checkSearchForm()
    {
        if(document.getElementById('keyword').value)
        {
            return true;
        }
        else
        {
            alert("<?php echo $this->_var['lang']['no_keywords']; ?>");
            return false;
        }
    }
    -->
    
    </script>
			<form id="searchForm" name="searchForm" method="get" action="search.php" onSubmit="return checkSearchForm()">
				<input name="keywords" type="text" id="keyword" class="txt-keyword"/>
				<input type="submit" class="btn-search" value="搜索" /> 
			</form>
<?php if ($this->_var['searchkeywords']): ?>
			<p>
<?php $_from = $this->_var['searchkeywords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'val');if (count($_from)):
    foreach ($_from AS $this->_var['val']):
?>
			<a href="search.php?keywords=<?php echo urlencode($this->_var['val']); ?>"><?php echo $this->_var['val']; ?></a>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			</p>
<?php endif; ?>

		</div>

		<div class="head-shopcart">

			<a href="flow.php" class="btn-shopcart" rel="nofollow">购物车</a>

<?php 
$k = array (
  'name' => 'cart_info2',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?>

		</div>
        
<div class="head-service"> 
 <ul>
 
  <li class="qqzc"> <h5>全球直采</h5> 
   <div class="hs-desc"> 
    <p><strong>更高性价比 品质更安心</strong></p> 
    <p>从酒庄（或全球一级酒商）直接进口，通过专业运输方式运达中国，零不明环节，直接让利给消费者，从而取得超高性价比。</p> 
    <div class="hs-foot">
     正品保证 ？ 低价保障 ？ 30天无理由退换货
    </div> 
   </div>
  </li> 
   
  <li class="hwhs"> <h5>恒温恒湿</h5> 
   <div class="hs-desc"> 
    <p><strong>全国6大恒温恒湿仓</strong></p> 
    <p> 长期窖藏高价位葡萄酒： <span>专业酒窖区，10~15℃恒温；湿度70~80%</span> 短期存储葡萄酒： <span>常规恒温仓，17~19℃恒温；湿度60%以上</span> </p> 
    <div class="hs-foot">
     正品保证 ？ 低价保障 ？ 30天无理由退换货
    </div> 
   </div>
  </li>
  
  <li class="free"> <h5>满150免运费</h5> 
   <div class="hs-desc"> 
    <p> <label>普通会员</label>满150元免运费<br /> <label>银卡会员</label>满150元免运费<br /> <label>黄金会员</label>满150元免运费<br /> <label>白金会员</label>满150元免运费<br /> <label>钻石会员</label>满150元免运费<br /> <label>悦酒大使</label>全场免运费<br /> <label>皇家大使</label>全场免运费 </p> 
    <div class="hs-foot">
     正品保证 ？ 低价保障 ？ 30天无理由退换货
    </div> 
   </div>
  </li>
  
 </ul>
</div></div>

	<div class="head-nav">

		<div class="site-nav">

	    	<ul class="navlinks" style="overflow:hidden"> 
 <li <?php if ($this->_var['navigator_list']['config']['index'] == 1): ?>class="on"<?php endif; ?>><a href="index.php">首 页</a></li> 
 <?php $_from = $this->_var['navigator_list']['middle']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'nav');$this->_foreach['nav_middle_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nav_middle_list']['total'] > 0):
    foreach ($_from AS $this->_var['nav']):
        $this->_foreach['nav_middle_list']['iteration']++;
?>
 <li <?php if ($this->_var['nav']['active'] == 1): ?>class="on"<?php endif; ?>><a href="<?php echo $this->_var['nav']['url']; ?>"><?php echo $this->_var['nav']['name']; ?></a></li> 
 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

</ul><div class="categorys"> 
 <h3><a href="#" target="_blank">选酒中心</a><b class="arrow"></b></h3> 
 <div class="categroup"> 
<?php $_from = get_categories_tree(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');$this->_foreach['cat'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat']['total'] > 0):
    foreach ($_from AS $this->_var['cat']):
        $this->_foreach['cat']['iteration']++;
?>  
 <?php if (($this->_foreach['cat']['iteration'] - 1) < 5): ?>
  <dl> 
   <dt> 
    <h4><a href="<?php echo $this->_var['cat']['url']; ?>" class="topcate" target="_blank"><?php echo htmlspecialchars($this->_var['cat']['name']); ?></a></h4> 
    <p>
    <?php $_from = $this->_var['cat']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');$this->_foreach['child'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['child']['total'] > 0):
    foreach ($_from AS $this->_var['child']):
        $this->_foreach['child']['iteration']++;
?>
      <?php if (($this->_foreach['child']['iteration'] - 1) < 6): ?>
    <a href="<?php echo $this->_var['child']['url']; ?>" target="_blank"><?php echo htmlspecialchars($this->_var['child']['name']); ?></a> 
      <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </p>
   </dt> 
   <dd> 
    <ul class="subcates">  
     <li> <h5>种类</h5> 
     <p>
     <?php $_from = $this->_var['cat']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');$this->_foreach['child'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['child']['total'] > 0):
    foreach ($_from AS $this->_var['child']):
        $this->_foreach['child']['iteration']++;
?>
     <a href="<?php echo $this->_var['child']['url']; ?>" target="_blank"><?php echo htmlspecialchars($this->_var['child']['name']); ?></a> 
     <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
     </p> </li> 

<?php
$GLOBALS['smarty']->assign('cat_brands', get_cat_brands($GLOBALS['smarty']->_var['cat']['id'],'category',30,'goods_num desc'));
?>
<?php if ($this->_var['cat_brands']): ?>
     <li> <h5>品牌</h5> <p> 
<?php $_from = $this->_var['cat_brands']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'get_brands');$this->_foreach['get_brands'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['get_brands']['total'] > 0):
    foreach ($_from AS $this->_var['get_brands']):
        $this->_foreach['get_brands']['iteration']++;
?>
     <a href="<?php echo $this->_var['get_brands']['url']; ?>" target="_blank"><?php echo $this->_var['get_brands']['brand_name']; ?></a>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php endif; ?>
     
     </p> </li> 
    </ul> 
   
   </dd> 
  </dl> 
 <?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
   
 </div> 
</div></div>

	</div>

</div>